/*
 * 创建日期 2005-9-30
 *
 * 更改所生成文件模板为
 * 窗口 > 首选项 > Java > 代码生成 > 代码和注释
 */
package com.vanda.report;

import java.util.HashMap;

import org.apache.poi.hssf.usermodel.HSSFSheet;

/**
 * @author wkf5985
 *
 * 报表数据类，此类将与Excel模板做映射
 */
public class ReportInnerData extends ReportData{

	//报表模板所在的sheet
	private HSSFSheet formatSheet;
	//生成报表的sheet
	private HSSFSheet reportSheet;
	
	private int currentRow = 0;
	
	private int currentCol = 0;
	
	//上下文数据
	private Object contextData;
	private int start_col = 0;
	private int start_row = 0;
	private int formatRowNum = 0;

	
	//临时变量
	private HashMap hmTemp = new HashMap();
	private Object temp1;
	private Object temp2;
	private Object temp3;
	private Object temp4;
	private Object temp5;
	
	/**
	 * 
	 * @param reportData
	 */
	public ReportInnerData(ReportData reportData){
		super.setSelectData(reportData.getSelectData());
		super.setReportList(reportData.getReportList());
		super.setReportList1(reportData.getReportList1());
		super.setReportList2(reportData.getReportList2());
		super.setReportList3(reportData.getReportList3());
		super.setReportList4(reportData.getReportList4());
		super.setReportList5(reportData.getReportList5());
		super.setReportList6(reportData.getReportList6());
		super.setReportList7(reportData.getReportList7());
		super.setReportList8(reportData.getReportList8());
		super.setReportList9(reportData.getReportList9());
		super.setReportList10(reportData.getReportList10());
		super.setReportList11(reportData.getReportList11());
		super.setReportList12(reportData.getReportList12());
		super.setReportList13(reportData.getReportList13());
		super.setReportList14(reportData.getReportList14());
		super.setReportList15(reportData.getReportList15());
		super.setReportList16(reportData.getReportList16());
		super.setReportList17(reportData.getReportList17());
		super.setReportList18(reportData.getReportList18());
		super.setReportList19(reportData.getReportList19());
		super.setReportList20(reportData.getReportList20());
		super.setReportList21(reportData.getReportList21());
		super.setReportList22(reportData.getReportList22());
		
		super.setWorkbook(reportData.getWorkbook());
		super.setStatus(reportData.getStatus());
		super.setErrors(reportData.getErrors());
		super.setData(reportData.getData());
		super.setData1(reportData.getData1());
		super.setData2(reportData.getData2());
		super.setData3(reportData.getData3());
		super.setData4(reportData.getData4());
		super.setData5(reportData.getData5());
		super.setData6(reportData.getData6());
		super.setData7(reportData.getData7());
		super.setData8(reportData.getData8());
		super.setData9(reportData.getData9());
		super.setShowParams(reportData.getShowParams());
	}
	
	/**
	 * 
	 * @param reportData
	 */
	public void setReportData(ReportData reportData){

		reportData.setSelectData(super.getSelectData());
		reportData.setReportList(super.getReportList());
		reportData.setReportList1(super.getReportList1());
		reportData.setReportList2(super.getReportList2());
		reportData.setReportList3(super.getReportList3());
		reportData.setReportList4(super.getReportList4());
		reportData.setReportList5(super.getReportList5());
		reportData.setReportList6(super.getReportList6());
		reportData.setReportList7(super.getReportList7());
		reportData.setReportList8(super.getReportList8());
		reportData.setReportList9(super.getReportList9());
		reportData.setReportList10(super.getReportList10());
		reportData.setReportList11(super.getReportList11());
		reportData.setReportList12(super.getReportList12());
		reportData.setReportList13(super.getReportList13());
		reportData.setReportList14(super.getReportList14());
		reportData.setReportList15(super.getReportList15());
		reportData.setReportList16(super.getReportList16());
		reportData.setReportList17(super.getReportList17());
		reportData.setReportList18(super.getReportList18());
		reportData.setReportList19(super.getReportList19());
		reportData.setReportList20(super.getReportList20());
		reportData.setReportList21(super.getReportList21());
		reportData.setReportList22(super.getReportList22());
		
		reportData.setWorkbook(super.getWorkbook());
		reportData.setErrors(super.getErrors());
		reportData.setData(super.getData());
		reportData.setData1(super.getData1());
		reportData.setData2(super.getData2());
		reportData.setData3(super.getData3());
		reportData.setData4(super.getData4());
		reportData.setData5(super.getData5());
		reportData.setData6(super.getData6());
		reportData.setData7(super.getData7());
		reportData.setData8(super.getData8());
		reportData.setData9(super.getData9());
		
		reportData.setStatus(super.getStatus());
		reportData.setShowParams(super.getShowParams());
	}

	/**
	 * @return
	 */
	public Object getContextData() {
		return contextData;
	}

	/**
	 * @return
	 */
	public int getCurrentRow() {
		return currentRow;
	}

	/**
	 * @return
	 */
	public int getFormatRowNum() {
		return formatRowNum;
	}

	/**
	 * @return
	 */
	public HSSFSheet getFormatSheet() {
		return formatSheet;
	}

	/**
	 * @return
	 */
	public HSSFSheet getReportSheet() {
		return reportSheet;
	}

	/**
	 * @return
	 */
	public int getStart_col() {
		return start_col;
	}

	/**
	 * @return
	 */
	public int getStart_row() {
		return start_row;
	}

	/**
	 * @return
	 */
	public Object getTemp1() {
		return temp1;
	}

	/**
	 * @return
	 */
	public Object getTemp2() {
		return temp2;
	}

	/**
	 * @param object
	 */
	public void setContextData(Object object) {
		contextData = object;
	}

	/**
	 * @param i
	 */
	public void setCurrentRow(int i) {
		currentRow = i;
	}

	/**
	 * @param i
	 */
	public void setFormatRowNum(int i) {
		formatRowNum = i;
	}

	/**
	 * @param sheet
	 */
	public void setFormatSheet(HSSFSheet sheet) {
		formatSheet = sheet;
	}

	/**
	 * @param sheet
	 */
	public void setReportSheet(HSSFSheet sheet) {
		reportSheet = sheet;
	}

	/**
	 * @param i
	 */
	public void setStart_col(int i) {
		start_col = i;
	}

	/**
	 * @param i
	 */
	public void setStart_row(int i) {
		start_row = i;
	}

	/**
	 * @param object
	 */
	public void setTemp1(Object object) {
		temp1 = object;
	}

	/**
	 * @param object
	 */
	public void setTemp2(Object object) {
		temp2 = object;
	}

	/**
	 * @return
	 */
	public Object getTemp3() {
		return temp3;
	}

	/**
	 * @param object
	 */
	public void setTemp3(Object object) {
		temp3 = object;
	}

	/**
	 * @return
	 */
	public Object getTemp4() {
		return temp4;
	}

	/**
	 * @return
	 */
	public Object getTemp5() {
		return temp5;
	}

	/**
	 * @param object
	 */
	public void setTemp4(Object object) {
		temp4 = object;
	}

	/**
	 * @param object
	 */
	public void setTemp5(Object object) {
		temp5 = object;
	}

	/**
	 * @return
	 */
	public int getCurrentCol() {
		return currentCol;
	}

	/**
	 * @param i
	 */
	public void setCurrentCol(int i) {
		currentCol = i;
	}

	/**
	 * @return
	 */
	public HashMap getHmTemp() {
		return hmTemp;
	}

	/**
	 * @param map
	 */
	public void setHmTemp(HashMap map) {
		hmTemp = map;
	}

}
